package VN.EDU.IMIC.DEVELOPER.TRINHCAOSANG.BaiTapObject.Exc2;

public class Controller {
    private Caculator caculator;
    private Model model;


    public Controller(Caculator caculator) {
        this.caculator = caculator;
        this.model = new Model();
    }

    public boolean CheckCal() {
        if (model.CheckZero(caculator)) {
           return true;
        } else {
            return false;
        }
    }
    public double CalResult(){
        return model.Cal(caculator);
    }

}
